<script setup>
const arr = [
  {
    icon:'../../static/image/1@2x.png',
    title:'学院确认记录',
    to:'/pages/user/faction1',
  },
  {
    icon:'../../static/image/2@2x.png',
    title:'上报记录',
    to:'/pages/user/faction2',
  },
  {
    icon:'../../static/image/3@2x.png',
    title:'角色切换',
    to:'/pages/user/faction3',
  },
  {
    icon:'../../static/image/4@2x.png',
    title:'学生免确认登记',
    to:'/pages/user/faction4',
  },
]
const toNext = (to) => {
  uni.navigateTo({
    url:to
  })
}
</script>

<template>
  <view class="df " v-for="(item,user) in arr" :key="user">
    <view class="cd dfl" @click="toNext(item.to)">
      <view>
        <image class="icon" :src ='item.icon'></image>
      </view>
      <view>
        <text class="title">{{item.title}}</text>
      </view>
    </view>
  </view>
</template>

<style scoped>
.df{
  display: flex;
  justify-content: center;
}
.dfl{
  display: flex;;
  justify-content: start;
  align-items: center;
}
.cd{
  margin-top: 10px;
  width: 351px;
  height: 80px;
  background: #FFF3F5F9;
  border-radius: 12px;
}
.icon{
  width: 38px;
  height: 38px;
  margin: 16px 21px;
}
.title{
  width: 90px;
  height: 21px;
  font-weight: 500;
  font-size: 15px;
  color: #222222;
  letter-spacing: 0;
}
</style>